package cn.iocoder.yudao.module.reading.controller.app.community.vo.report;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * 社区举报创建 Request VO
 *
 * @author 芋道源码
 */
@Schema(description = "用户 APP - 社区举报创建 Request VO")
@Data
public class ReportCreateReqVO {

    @Schema(description = "举报目标类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "post")
    @NotEmpty(message = "举报目标类型不能为空")
    private String targetType;

    @Schema(description = "举报目标ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "举报目标ID不能为空")
    private Long targetId;

    @Schema(description = "举报原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "内容不当")
    @NotEmpty(message = "举报原因不能为空")
    @Size(max = 500, message = "举报原因长度不能超过500个字符")
    private String reason;

}
